# coding=utf-8
from django.http import HttpResponseRedirect

__author__ = 'czq'
#判断是否登录
def isLogin(request):
    if (request.user.is_authenticated):
        return True
    else:
        return HttpResponseRedirect('/users/login')